package com.ccp.dev.system.model;

import com.ccp.dev.core.basic.model.BaseModel;
import java.util.Date;

/**
 * 登录日志表 sys_login_log
 *
 * @author zw
 * @date 2019-07-26 16:56:45
 */
public class SysLoginLog extends  BaseModel<SysLoginLog>
{
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String  id;
    /**
     * 登录账号
     */
    private String  account;
    /**
     * 登录时间
     */
    private Date  logintime;
    /**
     * IP
     */
    private String  ip;
    /**
     * 状态
     */
    private Integer  status;
    /**
     * 描述
     */
    private String  note;
    /**
     * 租户ID
     */
    private String  tenantid;

    private String userName;

    private String orgName;

    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getAccount() {
        return this.account;
    }
    public void setAccount(String account) {
        this.account = account;
    }
    public Date getLogintime() {
        return this.logintime;
    }
    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }
    public String getIp() {
        return this.ip;
    }
    public void setIp(String ip) {
        this.ip = ip;
    }
    public Integer getStatus() {
        return this.status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getNote() {
        return this.note;
    }
    public void setNote(String note) {
        this.note = note;
    }
    public String getTenantid() {
        return this.tenantid;
    }
    public void setTenantid(String tenantid) {
        this.tenantid = tenantid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    /**
     * 登录成功
     */
    public static final Integer SUCCESS=0;
    /**
     * 验证码错误
     */
    public static final Integer VCODE_ERR=-1;
    /**
     * 账号密码为空
     */
    public static final Integer ACCOUNT_PWD_EMPTY=-2;
    /**
     * 用户名密码输入错误
     */
    public static final Integer ACCOUNT_PWD_ERR=-3;
    /**
     * 用户被锁定
     */
    public static final Integer ACCOUNT_LOCKED=1;
    /**
     * 用户被禁用
     */
    public static final Integer ACCOUNT_DISABLED=2;
    /**
     * 用户已过期
     */
    public static final Integer ACCOUNT_OVERDUE=3;
    /**
     * 密码策略没通过
     */
    public static final Integer PWDSTRATEGY_UNPASS=4;
    /**
     * 账号在其他地点登陆
     */
    public static final Integer IP_CONFLICT=5;
    /**
     * license会话超数量
     */
    public static final Integer SESSION_LICENSE_ERR=6;
    /**
     * 其它程序错误
     */
    public static final Integer ERROR=6;




    @Override
    public String toString() {
        return "SysLoginLog{" +
                "id='" + id + "," +
                "account='" + account + "," +
                "logintime='" + logintime + "," +
                "ip='" + ip + "," +
                "status='" + status + "," +
                "note='" + note + "," +
                "tenantid='" + tenantid +
                '}';
    }

}
